#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>


my_memcpy(void* num, void* arr, int k)
{
	while (k--)
	{
		*(char*)num = *(char*)arr;
		num = (char*)num + 1;
		arr = (char*)arr + 1;
 	}
}
int main()
{
	int num[] = { 1,2,3,4,5,6,7,8,9 };
	int arr[20] = { 0 };
	int k = 20;
	my_memcpy(arr, num, k);
	return 0;
}